package com.hlk.article.service;

import com.hlk.utils.PageResult;

/**
 * @author hlk
 * @version 1.0
 * @date 2021-01-08 15:12
 */
public interface CommentPortalService {
    /**
     * 添加评论
     *
     * @param articleId
     * @param fatherId
     * @param content
     * @param userId
     * @param nickname
     * @param face
     */
    void createComment(String articleId, String fatherId, String content, String userId, String nickname, String face);

    /**
     * 获取文章的评论
     *
     * @param articleId
     * @param page
     * @param pageSize
     * @return
     */
    PageResult queryArticleComments(String articleId, Integer page, Integer pageSize);

    /**
     * 获取作者的评论
     *
     * @param writerId
     * @param page
     * @param pageSize
     * @return
     */
    PageResult queryWriterCommentsMng(String writerId, Integer page, Integer pageSize);

    /**
     * 删除评论
     *
     * @param writerId
     * @param commentId
     */
    void deleteComment(String writerId, String commentId,String articleId);
}
